package com.guanyong.model;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by mxk on 2017/9/19.
 */
public class KeyPiaofangModel {
    private  String curDate;
    private  Double maoyanNum=0d;
    private  Double nuomiNum=0d;

    public Long getPiaofang(){
        if (maoyanNum==0||nuomiNum==0){
            return Math.round(maoyanNum*10000+nuomiNum);
        }
        return Math.round(maoyanNum*10000+nuomiNum)/2;
    }

    public String getCurDate() {
        return curDate;
    }

    public void setCurDate(String curDate) {


        this.curDate = curDate.split(" ")[0];
    }

    public Double getMaoyanNum() {
        return maoyanNum;
    }

    public void setMaoyanNum(Double maoyanNum) {
        this.maoyanNum = maoyanNum;
    }

    public Double getNuomiNum() {
        return nuomiNum;
    }

    public void setNuomiNum(Double nuomiNum) {
        this.nuomiNum = nuomiNum;
    }
}
